package com.qst.dao;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.qst.entity.Goods;
@Repository("adminGoodsDao")
@Mapper
public interface AdminGoodsDao {
    public List<Goods> selectGoods();
    public List<Goods> selectAllGoodsByPage(Map<String, Object> map);
    public int addGoods(Goods goods);
    public Goods selectGoodsById(Integer id);
    public int deleteGoods(List<Integer> ids);
    public int deleteAGoods(Integer id);
    public int updateGoodsById(Goods goods);
    public List<Map<String, Object>> selectCartGoods(Integer id);
    public List<Map<String, Object>> selectFocusGoods(Integer id);
    public List<Map<String, Object>> selectOrderdetailGoods(Integer id);
}